import request from '/@/utils/request';


/**
 * 添加角色
 * @param data
 */
export function addBook(data:Object){
    return request({
        url: '/book',
        method: 'post',
        data:data
    });
}

/**
 * 修改角色
 * @param data
 */
export function updateBook(data:Object){
    return request({
        url: '/book',
        method: 'put',
        data:data
    });
}

/**
 * 查询分页列表信息
 */
export function  queryList(params:Object){
    return request({
        method:'get',
        url:'/book/list',
        params:params
    })
}

/**
 * 根据角色id[批量]删除角色信息
 * @param ids
 */
export function delByIds(ids:any){
    return request({
        url: '/book/'+ids,
        method: 'delete'
    })
}
